//
//  ILawListRequest.m
//  HONGQIYUN
//
//  Created by 余海华 on 2016/12/23.
//  Copyright © 2016年 Haidi. All rights reserved.
//

#import "ILawListRequest.h"

@implementation ILawListRequest {
    
    NSString *_cname;
    NSString *_cid;
    NSString *_fid;
    NSString *_page;
    NSString *_pageSize;
    NSString *_keyWords;
}
-(id) initRequestWithCname:(NSString *) cname andCid:(NSString *) cid andFid:(NSString *) fid andPage:(NSString *) page andPageSize:(NSString *) pageSize  andKeyWords:(NSString *) keyWords {
    
    if (self = [super init]) {
        _cname = cname;
        _cid = cid;
        _fid = fid;
        _page = page;
        _pageSize = pageSize;
        _keyWords = keyWords;
    }
    return self;
}


-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

-(NSString *)requestUrl
{
    return @"/tools/getdata.ashx?types=get_article_list";
}

-(id)requestArgument
{
    return @{
             @"cname": [_cname length]?_cname:@"",
             @"cid":[_cid length]?_cid:@"",
             @"fid":[_fid length]?_fid:@"",
             @"page":[_page length]?_page:@"",
             @"pagesize": [_pageSize length]?_pageSize:@"",
             @"keywords": [_keyWords length]?_keyWords:@""
             };
}


@end
